package server.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.context.annotation.Bean;
import server.bean.Product;
import server.bean.Shop;

import java.util.List;

@Mapper
public interface ProductMapper {
//    @Select("select * from product")
    public List<Product> selectProduct();
    public List<Product> selectPartProduct();
    public List<Product> selectByName(String name);
    public void deleteById(Integer id);
    public void updataById(Product product);
    public void insert (Product product);
    public Integer selectProductNumber ();
}
